package org.example.mytest.mapper;


import org.apache.ibatis.annotations.*;
import org.example.mytest.entity.User;

import java.util.List;

@Mapper
public interface UserOldMapper
{
    @Select("select * from user")
     List<User> findall();
    @Insert(" insert into user values(#{id},#{name},#{age},#{email})")
     void insert(User user);
    @Delete(" delete   from user where id=#{id}")
    public void  delete1(int id);
    @Update(" update user set name=#{name}, age=#{age} ,email=#{email} where id=#{id}")
    public void update1(User user);
}
